package com.taotao.controller.backend;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by ASUS on 2017/8/22.
 */
@Controller
@RequestMapping("/backend")
public class IndexController {
    /**
     * 跳转后台主页
     */
    @RequestMapping("/index")
    public String index(){
        return "index";
    }

    /**
     * 跳转对应页面
     */

    @RequestMapping("/{page}")
    public String showPage(@PathVariable("page") String page){
        return page;
    }

}
